import LayoutDefault from '@/Layout/default/index.tsx';
import LayoutAdmin from '@/Layout/AdminLayout/index.tsx';
import useGlobalStore from '@/store/global';
// 定义 reducer 函数
const Layout = () => {
  const layout = useGlobalStore((state) => state.Layout);

  switch (layout) {
    case 'default':
      return <LayoutDefault />;
    case 'horizontal':
      return <LayoutAdmin />;
    default:
      return <LayoutDefault />;
  }
};

export default Layout;
